<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//    '[hello]'     => [
//        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//        ':name' => ['index/hello', ['method' => 'post']],
//    ],
//
//];

use think\Route;

Route::rule('/register','User/add_user'); //注册用户
Route::rule('/select_user','User/select_user'); //查询用户
Route::rule('/select_user_by_username','User/select_user_by_username'); //查询用户(通过username);
Route::rule('/add_userRequest','UserRequest/add_userRequest');//添加数据到用户申请表
Route::rule('/select_userRequest','UserRequest/select_userRequest');//查询有谁想添加我为好友
Route::rule('/insert_Friend','Friend/insert_Friend');//查询有谁想添加我为好友
Route::rule('/select_Friend','Friend/select_Friend');//查询我的好友列表
Route::rule('/delete_item_userRequest','UserRequest/delete_item_userRequest');//删除好友申请表里的单个数据
Route::rule('/delete_Friend','Friend/delete_Friend');//删除好友申请表里的单个数据
Route::rule('/insert_Message','Message/insert_Message');//插入消息到消息列表
Route::rule('/select_Message','Message/select_Message');//查询消息列表
Route::rule('/select_message_left','Message_left/select_message_left');//查询左侧message列表
Route::rule('/update_message_left','Message_left/update_message_left');//更新左侧message列表
Route::rule('/delete_message_left','Message_left/delete_message_left');//根据fromid,toid删除双方的message列表